package com.boot.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName(value = "orders")
public class Order {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String code;
    @TableField("productId")
    private Long productId;
    @TableField("totalAmount")
    private BigDecimal totalAmount;
    private Integer status;
}
